package com.gmcc.docmanager.app;

import com.gmcc.docmanager.control.DocumentControl;
import com.gmcc.docmanager.control.LoginControl;
import com.gmcc.docmanager.control.PersonalAffairsControl;
import com.gmcc.docmanager.download.DownloadManager;
import com.gmcc.docmanager.loader.imageview.ImageViewUtil;
import com.gmcc.docmanager.util.ErrorCodeUtils;

import android.app.Application;

public class AndroidApplication extends Application {
	@Override
	public void onCreate() {
		super.onCreate();
		ErrorCodeUtils.buildErrorCodeMapping(this);
		LoginControl.init(this);
		DocumentControl.init(this);
		PersonalAffairsControl.init(this);
		ImageViewUtil.init(this);
		DownloadManager.startService(this);
	}
}
